home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 April / Gamestar_61_2004-04_dvdb.iso / DVDStar / Editace / hltp.exe / {app} / Source Code / CZBindMaker / About.cs next >
Text File  |  2003-11-29  |  12KB  |  279 lines

  1. /* 
  2.  * CZ Bind Maker
  3.  * 
  4.  * By: Steven Whitley (aka [CZ] Qw4z0)
  5.  * 
  6.  * CZ Bind Maker is a key Bind utility for Counter-Strike 1.6
  7.  * and is distributed under the GNU Public License.
  8.  * 
  9.  * This program is free software; you can redistribute it and/or
  10.  * modify it under the terms of the GNU General Public License
  11.  * as published by the Free Software Foundation; either version 2
  12.  * of the License, or (at your option) any later version.
  13.  * 
  14.  * This program is distributed in the hope that it will be useful,
  15.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17.  * GNU General Public License for more details. 
  18.  * 
  19.  * You should have received a copy of the GNU General Public License
  20.  * along with this program; if not, write to the Free Software
  21.  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
  22.  * 
  23.  * If you need further support for this program you may visit
  24.  * http://www.bindmaker.org/ and post in the forums there for help.
  25.  * 
  26.  *  
  27.  * Any Changes or modifications of this source may be submitted for inclusion
  28.  * in the official release of CZ Bind Maker to Steve Whitley at support@bindmaker.org.
  29.  *  
  30.  * Be sure to comment your code as follows:
  31.  * 
  32.  * // [ AUTHOR ] [ DATE ] 
  33.  * // [ DESCRIPTION OF THE CHANGE OR ADDITION ]
  34.  * 
  35.  * */
  36.  
  37. /* ###############################################
  38.  * #          Sand Bar Library License           #
  39.  * ###############################################
  40.  * 
  41.  * This release of SandBar is available at no charge for you to use in your freeware products 
  42.  * royalty-free. This license does not allow distribution of SandBar with software that is
  43.  * sold or generates income in any way. Use of this release is subject to my name being
  44.  * displayed as a credit in the About dialog in your application. If this is unacceptable you
  45.  * will need to purchase the commercial license.
  46.  * 
  47.  * When distributing this product with software where the source code is available (under
  48.  * GPL or other similar licenses) you are required to distribute this license file with the
  49.  * binary. This is to ensure other developers understand fully the terms of this release.
  50.  * 
  51.  * By using, downloading or posessing this product you agree not to attempt to decompile or
  52.  * reverse engineer it in any way. Enjoy!
  53.  * 
  54.  * Tim Dawson
  55.  * http://www.divil.co.uk/net/
  56.  * 
  57.  * */
  58.  
  59.  
  60. using System;
  61. using System.Drawing;
  62. using System.Collections;
  63. using System.ComponentModel;
  64. using System.Windows.Forms;
  65.  
  66. namespace CZBindMaker
  67. {
  68.     /// <summary>
  69.     /// About CZ Bind Maker
  70.     /// </summary>
  71.     public class About : System.Windows.Forms.Form
  72.     {
  73.         private string m_version = Application.ProductVersion;
  74.         private System.Windows.Forms.Button button1;
  75.         private System.Windows.Forms.PictureBox pictureBox1;
  76.         private System.Windows.Forms.Label label2;
  77.         private System.Windows.Forms.PictureBox pictureBox2;
  78.         private System.Windows.Forms.PictureBox pictureBox3;
  79.         private System.Windows.Forms.RichTextBox richTextBox1;
  80.         private System.Windows.Forms.Label label1;
  81.         
  82.         /// <summary>
  83.         /// Required designer variable.
  84.         /// </summary>
  85.         
  86.         private System.ComponentModel.Container components = null;
  87.  
  88.         public About()
  89.         {
  90.             InitializeComponent();    
  91.             
  92.             this.label1.Text = "Version "+CZBindMaker.CZBindMakerMainForm.applicationVersion;
  93.             #region this.richTextBox1.Rtf = "...";            
  94.             this.richTextBox1.Rtf = 
  95.                 @"{\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe1033{\fonttbl{\f0\froman\fprq2\fcharset0 Times New Roman;}}
  96. {\colortbl ;\red33\green66\blue99;\red0\green33\blue66;\red0\green0\blue0;}
  97. {\*\generator Msftedit 5.41.15.1503;}\viewkind4\uc1\pard\nowidctlpar\qc\cf1\b\f0\fs48 CZ Bind Maker\fs24\par
  98. \cf0\fs20\'a9 2003 Steven Whitley\par
  99. \par
  100. \pard\nowidctlpar\fs16\par
  101. \b0\fs20 CZ Bind Maker is a custom configuration program designed for Counter-Strike\'a9 1.6. When I (Steve Whitley, aka [CZ] Qw4z0) first downloaded CS1.6 I was frustrated with the lack of binding options in the in-game Options Form. I decided to make Bind Maker when I figured such an application might be useful to other non-technically inclined people like myself.\par
  102. \par
  103. My Vision for the program is to provide a means to graphically create custom buy scripts, and edit system configuration settings for Counter-Strike 1.6, with out knowing anything about scripting. At the same time allowing those who do, the ability to quickly churn out custom scripts with greater ease.\par
  104. \par
  105. This program is Open Source and is released under the GNU Public License and the source code for the application can be obtained from either CVS or the downloads section of the sourceforge project page. All contributions to the program will be noted here in further editions, so if you would like to be a part of the CZ Bind Maker development team, contribute, and your name will show up here.\par
  106. \par
  107. \cf2\b   Contributors:\tab\cf1 Steve Whitley\cf0\b0  ( \cf1 [CZ] Qw4z0\cf0  ) \endash  Main Programmer / Designer\par
  108. \cf1\b\tab\tab Casey York\cf0\b0  ( \cf1 [CZ] uShizi\cf0  ) \endash  Main Graphic Designer\par
  109. \tab\tab\cf1\b Toku Mitsurugi\cf0  \b0 (\b  \cf1  \b0 [CZ] iToku\cf0  ) \endash  Icon Designer\par
  110. \par
  111. \cf2\b             Testers:\tab\cf1 MaxiM\par
  112.                                 nebuchadnezar\par
  113.                                 Jimmy Taylor\par
  114.                                 Go20\cf3\b0\par
  115. \par
  116. \cf2\b               Links:\tab\cf0\b0 http://www.codezulu.com\par
  117. \tab\tab http://www.saladshooters.com\par
  118. \tab\tab http://www.clanoink.com\par
  119. \cf3\par
  120. \cf2\b            Others:\tab\cf0\b0\fs16 DotNetWidgets.dll & SandBar.dll Copyright \fs20\'a9 2003 by \cf1\b Tim\cf0  \cf1 Dawson\cf0\b0\par
  121. \tab\tab http://www.divil.co.uk/net/\par
  122. \b\par
  123. \b0\fs16\tab\tab\fs20 Private Settings  Copyright \'a9 2003 by \cf1\b Martin Cook\cf3\b0\par
  124. \cf0\fs16\par
  125. }
  126.  ";
  127.             #endregion
  128.         }
  129.         /// <summary>
  130.         /// Clean up any resources being used.
  131.         /// </summary>
  132.         protected override void Dispose( bool disposing )
  133.         {
  134.             if( disposing )
  135.             {
  136.                 if(components != null)
  137.                 {
  138.                     components.Dispose();
  139.                 }
  140.             }
  141.             base.Dispose( disposing );
  142.         }
  143.  
  144.         #region Windows Form Designer generated code
  145.         /// <summary>
  146.         /// Required method for Designer support - do not modify
  147.         /// the contents of this method with the code editor.
  148.         /// </summary>
  149.         private void InitializeComponent()
  150.         {
  151.             System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(About));
  152.             this.button1 = new System.Windows.Forms.Button();
  153.             this.pictureBox1 = new System.Windows.Forms.PictureBox();
  154.             this.label2 = new System.Windows.Forms.Label();
  155.             this.pictureBox2 = new System.Windows.Forms.PictureBox();
  156.             this.pictureBox3 = new System.Windows.Forms.PictureBox();
  157.             this.richTextBox1 = new System.Windows.Forms.RichTextBox();
  158.             this.label1 = new System.Windows.Forms.Label();
  159.             this.SuspendLayout();
  160.             // 
  161.             // button1
  162.             // 
  163.             this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
  164.             this.button1.Location = new System.Drawing.Point(216, 400);
  165.             this.button1.Name = "button1";
  166.             this.button1.Size = new System.Drawing.Size(72, 23);
  167.             this.button1.TabIndex = 1;
  168.             this.button1.Text = "Ok";
  169.             this.button1.Click += new System.EventHandler(this.button1_Click);
  170.             // 
  171.             // pictureBox1
  172.             // 
  173.             this.pictureBox1.Cursor = System.Windows.Forms.Cursors.Hand;
  174.             this.pictureBox1.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox1.Image")));
  175.             this.pictureBox1.Location = new System.Drawing.Point(221, 360);
  176.             this.pictureBox1.Name = "pictureBox1";
  177.             this.pictureBox1.Size = new System.Drawing.Size(64, 32);
  178.             this.pictureBox1.TabIndex = 3;
  179.             this.pictureBox1.TabStop = false;
  180.             this.pictureBox1.Click += new System.EventHandler(this.pictureBox1_Click);
  181.             // 
  182.             // label2
  183.             // 
  184.             this.label2.ForeColor = System.Drawing.SystemColors.ControlDarkDark;
  185.             this.label2.Location = new System.Drawing.Point(16, 328);
  186.             this.label2.Name = "label2";
  187.             this.label2.Size = new System.Drawing.Size(480, 16);
  188.             this.label2.TabIndex = 4;
  189.             this.label2.Text = "CZ Bind Maker is Free Software, If You use it and like it, feel free to make a do" +
  190.                 "nation.";
  191.             this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
  192.             // 
  193.             // pictureBox2
  194.             // 
  195.             this.pictureBox2.Cursor = System.Windows.Forms.Cursors.Hand;
  196.             this.pictureBox2.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox2.Image")));
  197.             this.pictureBox2.Location = new System.Drawing.Point(80, 360);
  198.             this.pictureBox2.Name = "pictureBox2";
  199.             this.pictureBox2.Size = new System.Drawing.Size(48, 48);
  200.             this.pictureBox2.TabIndex = 5;
  201.             this.pictureBox2.TabStop = false;
  202.             this.pictureBox2.Click += new System.EventHandler(this.pictureBox3_Click);
  203.             // 
  204.             // pictureBox3
  205.             // 
  206.             this.pictureBox3.Cursor = System.Windows.Forms.Cursors.Hand;
  207.             this.pictureBox3.Image = ((System.Drawing.Image)(resources.GetObject("pictureBox3.Image")));
  208.             this.pictureBox3.Location = new System.Drawing.Point(368, 360);
  209.             this.pictureBox3.Name = "pictureBox3";
  210.             this.pictureBox3.Size = new System.Drawing.Size(48, 48);
  211.             this.pictureBox3.TabIndex = 6;
  212.             this.pictureBox3.TabStop = false;
  213.             this.pictureBox3.Click += new System.EventHandler(this.pictureBox3_Click);
  214.             // 
  215.             // richTextBox1
  216.             // 
  217.             this.richTextBox1.BackColor = System.Drawing.SystemColors.ControlLightLight;
  218.             this.richTextBox1.Cursor = System.Windows.Forms.Cursors.Default;
  219.             this.richTextBox1.Location = new System.Drawing.Point(8, 8);
  220.             this.richTextBox1.Name = "richTextBox1";
  221.             this.richTextBox1.ReadOnly = true;
  222.             this.richTextBox1.Size = new System.Drawing.Size(488, 304);
  223.             this.richTextBox1.TabIndex = 7;
  224.             this.richTextBox1.Text = "";
  225.             this.richTextBox1.MouseEnter += new System.EventHandler(this.richTextBox1_MouseEnter);
  226.             // 
  227.             // label1
  228.             // 
  229.             this.label1.Location = new System.Drawing.Point(8, 416);
  230.             this.label1.Name = "label1";
  231.             this.label1.Size = new System.Drawing.Size(200, 16);
  232.             this.label1.TabIndex = 8;
  233.             this.label1.Text = "Version Information";
  234.             // 
  235.             // About
  236.             // 
  237.             this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);
  238.             this.ClientSize = new System.Drawing.Size(506, 438);
  239.             this.Controls.Add(this.label1);
  240.             this.Controls.Add(this.richTextBox1);
  241.             this.Controls.Add(this.pictureBox3);
  242.             this.Controls.Add(this.pictureBox2);
  243.             this.Controls.Add(this.label2);
  244.             this.Controls.Add(this.pictureBox1);
  245.             this.Controls.Add(this.button1);
  246.             this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
  247.             this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
  248.             this.MaximizeBox = false;
  249.             this.MinimizeBox = false;
  250.             this.Name = "About";
  251.             this.ShowInTaskbar = false;
  252.             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
  253.             this.Text = "   About CZ Bind Maker";
  254.             this.ResumeLayout(false);
  255.  
  256.         }
  257.         #endregion
  258.         private void button1_Click(object sender, System.EventArgs e)
  259.         {
  260.             this.Dispose();
  261.         }
  262.  
  263.         private void pictureBox1_Click(object sender, System.EventArgs e)
  264.         {
  265.             System.Diagnostics.Process.Start("https://www.paypal.com/xclick/business=donations%40bindmaker.org&item_name=CZ+Bind+Maker+Donation&no_note=1&tax=0¤cy_code=USD");
  266.         }
  267.  
  268.         private void pictureBox3_Click(object sender, System.EventArgs e)
  269.         {
  270.             System.Diagnostics.Process.Start("http://www.bindmaker.org");
  271.         }
  272.  
  273.         private void richTextBox1_MouseEnter(object sender, System.EventArgs e)
  274.         {
  275.             this.richTextBox1.Focus();
  276.         }
  277.     }
  278. }
  279.